<template>
  <div class="category">
    <h2>{{title}}分类</h2>
    <!-- <ul>
      <li v-for="(item, index) in data" :key="index">{{item}}</li>
    </ul> -->
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: 'CategoryView',
  props: ['title']
}
</script>

<style lang="less" scoped>
  .category {
    width: 200px;
    background: skyblue
  }
  h2 {
    background: orange;
    text-align: center;
  }
</style>